package com.joker.orange.service;

import com.joker.orange.domain.UserDeductionRecord;
import com.joker.orange.domain.vo.UserDeductionRecordVo;
import com.joker.orange.domain.bo.UserDeductionRecordBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 扣单记录Service接口
 *
 * @author Joker
 * @date 2024-07-27
 */
public interface IUserDeductionRecordService {

    /**
     * 查询扣单记录
     */
    UserDeductionRecordVo queryById(Long id);

    /**
     * 查询扣单记录列表
     */
    TableDataInfo<UserDeductionRecordVo> queryPageList(UserDeductionRecordBo bo, PageQuery pageQuery);

    /**
     * 查询扣单记录列表
     */
    List<UserDeductionRecordVo> queryList(UserDeductionRecordBo bo);

    /**
     * 新增扣单记录
     */
    Boolean insertByBo(UserDeductionRecordBo bo);

    /**
     * 修改扣单记录
     */
    Boolean updateByBo(UserDeductionRecordBo bo);

    /**
     * 校验并批量删除扣单记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
